package net.lzzy.lxq.dao;

import net.lzzy.lxq.entities.MonitorDevice;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MonitorMapper {


    @Select("select * from monitors where deviceId=#{deviceId}")
    MonitorDevice getMonitorDevice(@Param("deviceId")String address);
    @Select("select * from monitors where bluetoothmac=#{address}")
    MonitorDevice getMonitorDeviceByAddress(@Param("address")String address);
    @Select("select * from monitors")
    List<MonitorDevice> getAllMonitors();
}
